package com.rao.quartz.controller;

import com.rao.quartz.pojo.info_member;
import com.rao.quartz.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: raoguang
 * @Date: 2022/07/14/23:54
 * @Description:
 */
@RestController
public class memberController {

    @Autowired
    private MemberService memberService;

    @GetMapping("/queryMemberById/{userId}")
    public info_member QueryMemberById(@PathVariable("userId") int memId) {
        return memberService.getById(memId);
    }

    @GetMapping("/getUserInfoByUserName/{userName}")
    public List<info_member> getUserInfoByUserName(@PathVariable("userName") String memName) {
        return memberService.getUserInfoByUserName(memName);
    }

    /*@GetMapping("/queryByPage/{pageIndex}/{pageSize}")
    public List<info_member> queryByPage(){
        return memberService;
    }*/


}
